﻿#include <iostream>
#include <boost/asio.hpp>
#include "Session.h"
#include"Server.h"
int main()
{
	try {
		boost::asio::io_context ioc;
		Server s(ioc, 10086);	//监听10086端口
		ioc.run(); //启动事件循环，开始处理异步任务,阻塞进程，
	}
	catch (std::exception& e) {
		std::cerr << "Exception: " << e.what() << "\n";
	}
	return 0;

}

